package com.campus.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.entry.ManagerStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ManagerStudentMapper extends BaseMapper<ManagerStudent> {
    @Update("update db_spring_test.t_manager_student set status=1 where id=#{id}")
    void updateStatus(@Param("id") Integer id);
    @Select("select id,stu_name from t_manager_student")
    List<ManagerStudent> getMangerStudent();
    @Select("select id from t_manager_student where login_id=#{loginId}")
    Integer getStudentIdByLoginId(Integer loginId);


}
